﻿@using CaptchaMvc.HtmlHelpers
@model CodeCamp.Models.ResetAcctModel

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Reset Account</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserName, "Username")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastName, "Last Name")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>
        <p>
            @Html.Captcha("Try another image", "Enter the characters you see in the captcha image above.", 6, "Is required field.")
        </p>
        <p>
            <input type="submit" value="Reset" /><br />
            (The change can take a little while - wait for the page to change or for an error message.)
        </p>
    </fieldset>
}
